﻿namespace DotSpatial.Plugins.SplashScreenManager
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    using System.Windows.Forms;
    using DevExpress.XtraSplashScreen;
    using DotSpatial.Extensions.SplashScreens;


    public class SplashScreenPlugin : ISplashScreenManager
    {
        public void ProcessCommand(Enum cmd, object arg)
        {
            if (SplashScreenManager.Default != null)
                SplashScreenManager.Default.SendCommand(cmd, arg);
        }

        public void Activate()
        {
            SplashScreenManager.ShowForm(typeof(BrandedSplashScreen), false, true);
        }

        public void Deactivate()
        {
            SplashScreenManager.CloseForm();
        }
    }
}
